/********************************************************************************
 *      Copyright:  (C) 2022 Zhang xiangyun<1327295677@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  pack.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(08/05/22)
 *         Author:  Zhang xiangyun <1327295677@qq.com>
 *      ChangeLog:  1, Release initial version on "08/05/22 10:09:59"
 *                 
 ********************************************************************************/
#ifndef _PACK_H_
#define _PACK_H_


#define DEVID_LEN       16
#define TIME_LEN        32

typedef struct pack_info_s
{
	char       serial_id[DEVID_LEN];
	char       sample_time[TIME_LEN];
	char       temper[256];
}pack_info_t;

extern int get_id(char *serial_id, int size, int sn);
extern int get_time(char *sample_time);
extern int packet_data(pack_info_t pack_info,char *pack_buf,int size);

#endif /* ----------#ifndef _PACK_H_---------- */

